const Layout = () => import('@/layout/index.vue')
export default [
  {
    path: '/union',
    name: 'Union',
    meta: { title: '公会中心',icon:'Flag' },
    component: Layout,
    children: [
      {
        path: '/union-list',
        name: 'UnionList',
        component: () => import('@/views/guild_room/union/union-list/index.vue'),
        meta: { title: '公会中心', role: ['union_index']}
      },
      {
        path: '/union-settlement',
        component: () => import('@/views/guild_room/union/settlement/index.vue'),
        name: 'union-settlement',
        meta: { title: '对公结算', role: ['union-settlement'] }
      },
      {
        path: '/union-weeksettle',
        component: () => import('@/views/guild_room/union/weeksettle/index.vue'),
        name: 'union-weeksettle',
        meta: { title: '公会周结算', role: ['union-weeksettle'] }
      },
      {
        path: '/unionGetIdentityMsgStatisticsList',
        component: () => import('@/views/guild_room/union/getIdentityMsgStatisticsList/index.vue'),
        name: 'unionGetIdentityMsgStatisticsList',
        meta: { title: '主播私信数量统计', role: ['union_getIdentityMsgStatisticsList'] }
      },
    ],
  },
  {
    path: '/room',
    name: 'Room',
    meta: { title: '房间中心',icon:'HomeFilled' },
    component: Layout,
    children: [
      {
        path: '/room-list',
        name: 'RoomList',
        component: () => import('@/views/guild_room/room/roomList/index.vue'),
        meta: { title: '公开房管理', role: ['room_index']}
      },
      {
        path: '/room/cabinList',
        name: 'CabinList',
        component: () => import('@/views/guild_room/room/cabinList/index.vue'),
        meta: { title: '个人房管理', role: ['room_cabinIndex']}
      },
      {
        path: '/room-push',
        name: 'RoomPush',
        component: () => import('@/views/guild_room/room/roomPush/index.vue'),
        meta: { title: '列表推荐房间', role: ['room_push']}
      },
      {
        path: '/suggestList',
        name: 'SuggestList',
        component: () => import('@/views/guild_room/room/suggest/index.vue'),
        meta: { title: '轮播房间配置', role: ['room_suggestList']}
      },
      {
        path: '/room/closeList',
        name: 'RoomCloseList',
        component: () => import('@/views/guild_room/room/closeList/index.vue'),
        meta: { title: '关闭记录', role: ['room_closeRoomLog']}
      },
      {
        path: '/room/frameList',
        name: 'RoomFrameList',
        component: () => import('@/views/guild_room/room/frameList/index.vue'),
        meta: { title: '房间装饰框', role: ['room_frameList']}
      },
      {
        path: '/room/frameLogList',
        name: 'RoomFrameLogList',
        component: () => import('@/views/guild_room/room/frameLogList/index.vue'),
        meta: { title: '边框下发', role: ['room_frameLogList']}
      },
    ],
  },
]
